Skip to content

fix: raise tree-sitter floor to 0.25, test query compilation - #2170

Merged
RaghavChamadiya merged 1 commit into
repowise-dev:mainfrom
Aman-goel-04:fix/tree-sitter-floor-2165
Sep 11, 2026
Merged

fix: raise tree-sitter floor to 0.25, test query compilation#2170
RaghavChamadiya merged 1 commit into
repowise-dev:mainfrom
Aman-goel-04:fix/tree-sitter-floor-2165

Conversation

@Aman-goel-04

Copy link
Copy Markdown
Contributor

Summary

  • Raise the tree-sitter floor from >=0.23,<1 to >=0.25,<1. 0.23.x/0.24.x fail to compile 13 of 27 language queries (Impossible pattern), silently indexing those languages at zero symbols
  • Add a test that compiles every language's query against its registered grammar and asserts the result isn't None, instead of expecting an exception
  • Add a CI job that pins tree-sitter to the exact declared floor (0.25.0) and runs that one test, so a future floor regression is caught without a full --resolution lowest-direct job

Related Issues

Fixes #2165

Test Plan

  • Tests pass (pytest)
  • Lint passes (ruff check .)
  • Web build passes (npm run build) (if frontend changes): N/A, no frontend changes

Checklist

  • My code follows the project's code style
  • I have added tests for new functionality
  • All existing tests still pass
  • I have updated documentation if needed: N/A, no docs affected

@RaghavChamadiya RaghavChamadiya left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The floor bump alone would have been the easy half. Pinning tree-sitter back down to exactly 0.25.0 in its own job, with --no-sync so the pin survives, is what actually stops this regressing, and asserting on the None return rather than an exception matches what _load_compiled_query really does in production.

@RaghavChamadiya
RaghavChamadiya merged commit 55de7f7 into repowise-dev:main Sep 11, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Raise the tree-sitter floor to 0.25 and add a test that compiles every language query

2 participants